<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<html>
<head>
    <title>在线问卷-用户注册</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="../css/ManagerLogin.css">
</head>
<body onload="checkForm()">
<div id="bg"></div>
<div class="show">
    <div class="container">
        <div class="row">
            <div class="col-xs-6 col-sm-3">
                <div class="test">
                </div>
            </div>
            <div class="col-xs-6 col-sm-3">
                <div class="login-panel">
                    <h3 class="form-title">用户注册</h3>
                    <hr class="top-line">
                    <form method="post">
                        <div class="form-group">
                            <label for="username">用户名</label>
                            <input type="text" class="form-control" id="username" name="username">
                        </div>
                        <div class="form-group">
                            <label for="phone_num">手机号</label>
                            <input type="tel" class="form-control" id="phone_num" name="phone_num">
                        </div>
                        <div class="form-group">
                            <label for="password">密码</label>
                            <input type="password" class="form-control" id="password" name="password">
                        </div>
<%--                        <div class="form-group">--%>
<%--                            <label for="code">验证码</label>--%>
<%--                            <div class="row">--%>
<%--                                <div class="col-md-6 col-sm-6 col-xs-6" id="vcode-panel">--%>
<%--                                    <input type="text" class="form-control" id="code" name="code">--%>
<%--                                </div>--%>
<%--                                <div class="col-md-6 col-sm-6 col-xs-6" id="vcode-panel2">--%>
<%--                                    <button type="submit" id="sendMessage" class="btn btn-info" name="sendMessage" formaction="/client/sendMessage" formmethod="post">发送</button>--%>
<%--                                </div>--%>
<%--                            </div>--%>
<%--                        </div>--%>
                        <div class="form-group">
                            <button type="submit" class="btn btn-info col-md-12 col-sm-12 col-xs-12" id="register" name="register" formaction="/client/register" formmethod="post">确认注册</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

    <div class="bottom-info">
        <p>&copy; Web开发小组 · 2022</p>
    </div>
</div>
<script type="text/javascript">
    function checkForm() {
        var flag = '<%=request.getAttribute("message")%>';
        if(flag != "null") {
            alert(flag);
            $("#username").attr("value","");
            $("#password").attr("value","");
        }
    }
</script>
<script src="../js/jquery-3.3.1.min.js"></script>
<script src="../js/userRegister.js"></script>
</body>
</html>